using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum LogType
{
    Normal,
    Warning,
    Error,
    Debug,
}

public enum LogShowMode
{
    Debug,
    Release
    
}
public class MyLog : Singleton<MyLog>
{

    public LogShowMode showMode = LogShowMode.Debug;
    // Start is called before the first frame update
    void Start()
    {
        
    }
    
    public void Log(object message, LogType type = LogType.Debug)
    {
        message = type.ToString()+","+message;
        if (type == LogType.Debug)
        {
            if (showMode == LogShowMode.Debug)
            {
                Debug.Log(message);
            }
            
        }
    }
    // Update is called once per frame
    void Update()
    {
        
    }
}
